export function columnChartOpts(){ //版本更新提示
	const columnOpts = {
		// color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
		color: [],
		padding: [30, 30, 10, 10],
		// padding: [15,15,0,5],
		enableScroll: false,
		legend: {
			show: false,
		},
		xAxis: {
			disableGrid: true,
			fontSize: 10,
			fontColor: '#ccc',
			// title: '人数',
			// titleFontSize: 10,
			// titleOffsetY: -200,
			// titleOffsetX: -10,
			// titleFontColor: '#ccc'
		},
		yAxis: {
			splitNumber: 4, //横向网格线数量
			gridType: 'dash', //横向线类型
			dashLength: 1,
			gridColor: '#dddddd',
			data: [{
				min: 0,
				axisLine: false, //不限时y轴
				fontSize: 10,
				fontColor: '#ccc',
			}]
		},
		extra: {
			tooltip: {
				showBox: false,
				//showCategory: true, //顶部标题
				// borderRadius: 10,
				// showArrow: false, //是否显示旁边的小三角箭头
				// legendShow: false, //是否显示左侧图例
				// fontSize: 10,
			},
			markLine: {
				type: 'dash',
			},
			column: {
				type: "group",
				width: 15,
				activeBgColor: "#000000",
				activeBgOpacity: 0,
				barBorderRadius: [10, 10, 0, 0],
				linearType: 'custom',
				customColor: ["#FA7D8D", "#EB88E2"],
			}
		}
	};
	return columnOpts;
}

export function ringChartOpts() {
	const ringOpts = {
		rotate: false,
		rotateLock: false,
		color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
		padding: [5,5,5,5],
		dataLabel: false, //值的显示
		enableScroll: true,
		legend: {
			show: false,
			position: "right",
			lineHeight: 25
		},
		title: { //中间文字
			name: "3000场",
			fontSize: 12,
			color: "#666"
		},
		subtitle: { //中间蓝色字体
			name: "",
			fontSize: 15,
			color: "#fff"
		},
		extra: {
			tooltip: {
				showBox: false,
			},
			ring: {
				ringWidth: 20,
				activeOpacity: 0, //选中时突出去的部分是否透明
				activeRadius: 0, //突出的范围
				offsetAngle: 10,
				labelWidth: 25,
				border: false,
				borderWidth: 13,
				borderColor: "#FFFFFF",
			}
		}
	};
	return ringOpts;
}